package com.yingjie.yingjiekitchen.service.impl;

import com.yingjie.commonbase.model.Kitchen;
import com.yingjie.yingjiekitchen.mapper.KitchenMapper;
import com.yingjie.yingjiekitchen.service.KitchenService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

/**
* @author Administrator
* @description 针对表【kitchen(厨房表)】的数据库操作Service实现
* @createDate 2025-03-01 15:03:56
*/
@Service
public class KitchenServiceImpl implements KitchenService{


    @Resource
    private KitchenMapper kitchenMapper;
    @Override
    public Integer create(Kitchen kitchen) {
        return kitchenMapper.createKitchen(kitchen);
    }

    @Override
    public Kitchen getMyKitchenInfo(Integer userId) {
        return kitchenMapper.getMyKitchenInfo(userId);
    }

    @Override
    public Kitchen getKitchenInfo(Integer kitchenId) {
        return kitchenMapper.getKitchenInfo(kitchenId);
    }


}




